# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=pass-otp
pkgver=1.2.0
pkgrel=0
pkgdesc="A pass extension for managing one-time-password (OTP) tokens"
url="https://github.com/tadfisher/pass-otp"
arch="noarch"
license="GPL-3.0-only"
depends="pass libqrencode oath-toolkit-oathtool"
checkdepends="git expect gnupg"
subpackages="$pkgname-doc $pkgname-bash-completion"
source="pass-otp-$pkgver.tar.gz::https://github.com/tadfisher/pass-otp/archive/v$pkgver.tar.gz"
options="!check" # fails due to old version

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" BASHCOMPDIR="/usr/share/bash-completion/completions" install
}
sha512sums="
3d1417462998750ef1580169ed0e4b721b5f430cd86a678d1b6bc7b2ac123879902f7d22c28dc21e8a171ec80dfc51b6465d0dcc78cb009eb731651f2cb152f5  pass-otp-1.2.0.tar.gz
"
